export default {
    state: {
        token: '',
        name:'未登录'
    },
    mutations: {
        tokenChenge(state, token) {
            state.token = token
        },
        nameChange(state,name){
            state.name=name
        }
    },
    actions: {
        tokenFun({ commit }, token) {
            commit('tokenChenge', token)
        },
        nameFun({ commit }, name) {
            commit('nameChange', name)
        }
    },
    namespaced: true,
}